package com.kingyun.gpsinspection.purificationservice.services.som.innerservice.impl;

import com.kingyun.gpsinspection.purificationservice.dao.mapper.som.CellRelatedDocMapper;
import com.kingyun.gpsinspection.purificationservice.facade.model.som.CellRelatedDoc;
import com.kingyun.gpsinspection.purificationservice.facade.service.som.FacadeRelatedDocService;
import org.springframework.beans.factory.annotation.Autowired;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by yangcs on 2017/4/26.
 */
public class FacadeRelatedDocServiceImpl implements FacadeRelatedDocService {

    @Autowired
    private CellRelatedDocMapper cellRelatedDocMapper;

    /**
     * 查询一站一案关联文档
     * @param cellId
     * @param version
     * @return
     */
    @Override
    public List<CellRelatedDoc> queryByParams(String cellId, BigDecimal version) {
        CellRelatedDoc cellRelatedDoc = new CellRelatedDoc();
        cellRelatedDoc.setCellId(cellId);
        cellRelatedDoc.setVersion(version);
        return cellRelatedDocMapper.queryByParam(cellRelatedDoc);
    }
}
